import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { TUserBasic } from '../../entities/user-basic.entity';
import { TUserBasicService } from './user-basic.service';
import { TUserBasicController } from './user-basic.controller';

import { BlogArticle } from '../../entities/blog_article.entity';
import { BlogArticleService } from '../../service/article.service';


@Module({
  imports: [
    TypeOrmModule.forFeature([TUserBasic]), 
    TypeOrmModule.forFeature([BlogArticle]),
  ],
  providers: [TUserBasicService, BlogArticleService],
  controllers: [TUserBasicController],
  exports: [TUserBasicService, BlogArticleService], // 如果其他模块需要用到这个服务
})
export class TUserBasicModule {}